package org.dromara.system.service;

import org.dromara.system.domain.WbCompanyCert;
import org.dromara.system.domain.vo.WbCompanyCertVo;
import org.dromara.system.domain.bo.WbCompanyCertBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 企业资质证书Service接口
 *
 * @author Lion Li
 * @date 2024-03-22
 */
public interface IWbCompanyCertService {

    /**
     * 查询企业资质证书
     */
    WbCompanyCertVo queryById(Long id);

    /**
     * 查询企业资质证书列表
     */
    TableDataInfo<WbCompanyCertVo> queryPageList(WbCompanyCertBo bo, PageQuery pageQuery);

    /**
     * 查询企业资质证书列表
     */
    List<WbCompanyCertVo> queryList(WbCompanyCertBo bo);

    /**
     * 新增企业资质证书
     */
    Boolean insertByBo(WbCompanyCertBo bo);

    /**
     * 修改企业资质证书
     */
    Boolean updateByBo(WbCompanyCertBo bo);

    /**
     * 校验并批量删除企业资质证书信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
